import request from '@/utils/request'

// 批量新增产品能力绑定
export function productInfoPowerBatchAddBind(data) {
  return request({
    url: '/produce/product-info-power-bind/batch-insert',
    method: 'post',
    data: data
  })
}

// 批量修改产品能力绑定
export function productInfoPowerBatchUpdateBind(data) {
  return request({
    url: '/produce/product-info-power-bind/batch-update',
    method: 'post',
    data: data
  })
}

// 根据productCode查询产品能力绑定
export function getProductPowerByProductCode(query) {
  return request({
    url: '/produce/product-info-power-bind/get-by-product-code-or-addr',
    method: 'get',
    params: query
  })
}

// 逻辑删除产品测试项目绑定
export function delProductPowerBind(ids) {
  return request({
    url: '/produce/product-info-power-bind/' + ids,
    method: 'delete'
  })
}


